package org.muxiao.seckill.util;

import org.junit.jupiter.api.Test;

/**
 * MD5UtilTest
 */
public class MD5UtilTest {

    @Test
    public void f1() {
        //密码明文12345
        String midPass = MD5Util.inputPassToMidPass("12345");
        String dbPass = MD5Util.midPassToDBPass(midPass, "nRuBazN2");
        String finalPass = MD5Util.inputPassToDBPass("12345", "nRuBazN2");

        System.out.println("midPass-->" + midPass);
        System.out.println("dbPass-->" + dbPass);
        System.out.println("finalPass-->" + finalPass);
        System.out.println("dbPass-finalPass 是否相等?-->" + dbPass.equals(finalPass));
    }
}
